import request from '@/utils/request'

// 隐患数据
export function statisticNumData(params) {
  return request({
    url: '/business/defect/defectQuestionStatistic/statisticNumData',
    method: 'get',
    params
  })
}

//  整改情况统计
export function queryQuestionList(data) {
  return request({
    url: '/business/defect/defectQuestionStatistic/statisticRepair',
    method: 'post',
    data
  })
}

//  整改情况排行
export function statisticRank(data) {
  return request({
    url: '/business/defect/defectQuestionStatistic/statisticRank',
    method: 'post',
    data
  })
}

// 隐患来源统计
export function statisticSource(params) {
  return request({
    url: '/business/defect/defectQuestionStatistic/statisticSource',
    method: 'get',
    params
  })
}

// 监管人员抽查情况
export function statisticChouCha(params) {
  return request({
    url: '/business/defect/defectQuestionStatistic/statisticChouCha',
    method: 'get',
    params
  })
}
